]> dgit.raspbian.org Git - gnome-shell.git/commit
main: add timestamp parameter to push/popModal
authorRay Strode <rstrode@redhat.com>
Wed, 20 Oct 2010 19:08:14 +0000 (15:08 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 14 Jan 2011 04:36:22 +0000 (23:36 -0500)
commitdc020628b5f869922fb0df0d49cd61ca280399e8
treef8efa27976173a1549b5176fd1d5abf8dd1d7b67
parentbed063eea16b0e43ae7e6166e6786769f4f06c2a
main: add timestamp parameter to push/popModal

Right now popModal() passes global.get_current_time() for
its begin_modal() call.  global.get_current_time() is the
timestamp of the last gdk or clutter event processed by the
shell's mutter process.  These values could potentially be
be too stale to use if pushModal() were to get called in
response to an event by another process.

This commit changes pushModal() to have an optional timestamp
argument, which can be used to associate the call with the
event that initiated it.

https://bugzilla.gnome.org/show_bug.cgi?id=637187
js/ui/main.js